/*********************************************************************************
 *      Copyright:  (C) 2022 Li Yanting<liyanting2@163.com>
 *                  All rights reserved.
 *
 *       Filename:  ds18b20.c
 *    Description:  This file for get temperature.
 *                 
 *        Version:  1.0.0(04/16/2022)
 *         Author:  Li Yanting <liyanting2@163.com>
 *      ChangeLog:  1, Release initial version on "04/16/2022 11:05:03"
 *                 
 ********************************************************************************/

#ifndef _DS18B20_H_
#define _DS18B20_H_

#include <stdio.h>
#include <errno.h>
#include <dirent.h>
#include <string.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include "logger.h"


/*********************************************************************************
 *      Function name:  get_temperature
 *        Description:  get ds18b20 temperature
 *         @parameter:  temper
 *       Return value:  On error, -1 is returned. On success, temper is returned.
 ********************************************************************************/
int get_temperature(float *temper);


#endif


